<?php
/**
* Wordpress Skeleton, a very minimal wordpress theme designed to be used as a base for other themes.
*
* @licence LGPL
* @author themingpress - http://themingpress.com - support@themingpress.com
* 
* Project URL http://code.google.com/p/themingpress-skeleton/
*/

/**
* register_sidebar()
*
*@desc Registers the markup to display in and around a widget
*/
if ( function_exists('register_sidebar') )
{
  register_sidebar(array(
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',
    'before_title' => '',
    'after_title' => '',
  ));
  register_sidebar( array(
		'name' => 'custom-sidebar',
		'id' => 'custom-sidebar',
		'description' => __( 'custom sidebar'),
		'before_widget' => '',
		'after_widget' => '',
		'before_title' => '',
		'after_title' => '',
	) );
}

/**
* Check to see if this page will paginate
* 
* @return boolean
*/
function will_paginate() 
{
  global $wp_query;
  
  if ( !is_singular() ) 
  {
    $max_num_pages = $wp_query->max_num_pages;
    
    if ( $max_num_pages > 1 ) 
    {
      return true;
    }
  }
  return false;
}
add_theme_support( 'post-thumbnails' );
add_theme_support( 'automatic-feed-links' );
if ( ! isset( $content_width ) ) $content_width = 650;

?>